package org.kfive.nova.test.regex;

import java.util.regex.Matcher;
import java.util.regex.Pattern;

/**
 * Created by admin on 2017-04-23.
 */
public class RegexExample {
    public static void main(String[] args) {
        Pattern pattern = Pattern.compile("(\\d)(?=(\\d{3}))+$");
        Matcher matcher = pattern.matcher("1234567890");
        while (matcher.find()){
            System.out.println(matcher.group());
        }
//        System.out.println(matcher.replaceAll(","));
    }
}
